<?php


use Illuminate\Support\Facades\Route;//路由
use App\Http\Controllers\API\AuthController;//jwt验证控制器

Route::group(['prefix'=>'user'],function () {//第一版本
    Route::post('login', [AuthController::class,'login'])->name('login');//登录
    Route::post('register', [AuthController::class,'register']);//注册
    Route::post('logout', [AuthController::class,'logout']);//退出
    Route::post('refresh', [AuthController::class,'refresh']);//更新token
});
